package com.youmingxing.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.youmingxing.R;

/**
 * @author chihiro(xuchang)
 * @since 2015-11-9
 */

public class SplashActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        new Handler().postDelayed(new Runnable() {
            public void run() {
                /* Create an Intent that will start the Main WordPress Activity. */
                Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class);
                SplashActivity.this.startActivity(mainIntent);
                SplashActivity.this.finish();
            }
        }, 800); //1000 for release
    }
}
